import React from 'react';
import {NavLink} from 'react-router-dom'
import useMyReducer from '../../reducer';
const Index = () => {
    const [state] =useMyReducer()
    return (
        <div>
            
            <NavLink to="/city">
                <button>{state.city}</button>
            </NavLink>
        </div>
    );
}

export default Index;
